<?php

use yii\db\Migration;

class m170802_064117_after_card_attr extends Migration
{
    public function safeUp()
    {
        $this->addColumn('{{%card_attr}}', 'card_no', $this->string(50) . ' default null comment \'卡编号\'');

    }

    public function safeDown()
    {
        $this->dropColumn('{{%card_attr}}', 'card_no');
    }
}
